Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: requires with task-level vars #1769

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mokeko
Copy link

@mokeko mokeko commented Aug 20, 2024

fix : #1768.

In Executor.compiledTask, a new ast.Task variable is created as the return value of the function. While most fields from origTask are carried over, the Vars field is not set. I have added a change to address this.
Although the other fields are set using templater.Replace, it doesn't seem necessary for Vars. This is because e.Compiler.GetVariables at line 37 already calls templater.Replace internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task-level vars are ignored during 'requires' evaluation
1 participant